# Original Adafruit_GFX 5x7 font

def height():
    return 8

def max_width():
    return 6

def hmap():
    return False

def reverse():
    return False

def monospaced():
    return True

def min_ch():
    return 0

def max_ch():
    return 255


_font = \
	b'\x00\x00\x00\x00\x00'\
	b'\x3E\x5B\x4F\x5B\x3E'\
	b'\x3E\x6B\x4F\x6B\x3E'\
	b'\x1C\x3E\x7C\x3E\x1C'\
	b'\x18\x3C\x7E\x3C\x18'\
	b'\x1C\x57\x7D\x57\x1C'\
	b'\x1C\x5E\x7F\x5E\x1C'\
	b'\x00\x18\x3C\x18\x00'\
	b'\xFF\xE7\xC3\xE7\xFF'\
	b'\x00\x18\x24\x18\x00'\
	b'\xFF\xE7\xDB\xE7\xFF'\
	b'\x30\x48\x3A\x06\x0E'\
	b'\x26\x29\x79\x29\x26'\
	b'\x40\x7F\x05\x05\x07'\
	b'\x40\x7F\x05\x25\x3F'\
	b'\x5A\x3C\xE7\x3C\x5A'\
	b'\x7F\x3E\x1C\x1C\x08'\
	b'\x08\x1C\x1C\x3E\x7F'\
	b'\x14\x22\x7F\x22\x14'\
	b'\x5F\x5F\x00\x5F\x5F'\
	b'\x06\x09\x7F\x01\x7F'\
	b'\x00\x66\x89\x95\x6A'\
	b'\x60\x60\x60\x60\x60'\
	b'\x94\xA2\xFF\xA2\x94'\
	b'\x08\x04\x7E\x04\x08'\
	b'\x10\x20\x7E\x20\x10'\
	b'\x08\x08\x2A\x1C\x08'\
	b'\x08\x1C\x2A\x08\x08'\
	b'\x1E\x10\x10\x10\x10'\
	b'\x0C\x1E\x0C\x1E\x0C'\
	b'\x30\x38\x3E\x38\x30'\
	b'\x06\x0E\x3E\x0E\x06'\
	b'\x00\x00\x00\x00\x00'\
	b'\x00\x00\x5F\x00\x00'\
	b'\x00\x07\x00\x07\x00'\
	b'\x14\x7F\x14\x7F\x14'\
	b'\x24\x2A\x7F\x2A\x12'\
	b'\x23\x13\x08\x64\x62'\
	b'\x36\x49\x56\x20\x50'\
	b'\x00\x08\x07\x03\x00'\
	b'\x00\x1C\x22\x41\x00'\
	b'\x00\x41\x22\x1C\x00'\
	b'\x2A\x1C\x7F\x1C\x2A'\
	b'\x08\x08\x3E\x08\x08'\
	b'\x00\x80\x70\x30\x00'\
	b'\x08\x08\x08\x08\x08'\
	b'\x00\x00\x60\x60\x00'\
	b'\x20\x10\x08\x04\x02'\
	b'\x3E\x51\x49\x45\x3E'\
	b'\x00\x42\x7F\x40\x00'\
	b'\x72\x49\x49\x49\x46'\
	b'\x21\x41\x49\x4D\x33'\
	b'\x18\x14\x12\x7F\x10'\
	b'\x27\x45\x45\x45\x39'\
	b'\x3C\x4A\x49\x49\x31'\
	b'\x41\x21\x11\x09\x07'\
	b'\x36\x49\x49\x49\x36'\
	b'\x46\x49\x49\x29\x1E'\
	b'\x00\x00\x14\x00\x00'\
	b'\x00\x40\x34\x00\x00'\
	b'\x00\x08\x14\x22\x41'\
	b'\x14\x14\x14\x14\x14'\
	b'\x00\x41\x22\x14\x08'\
	b'\x02\x01\x59\x09\x06'\
	b'\x3E\x41\x5D\x59\x4E'\
	b'\x7C\x12\x11\x12\x7C'\
	b'\x7F\x49\x49\x49\x36'\
	b'\x3E\x41\x41\x41\x22'\
	b'\x7F\x41\x41\x41\x3E'\
	b'\x7F\x49\x49\x49\x41'\
	b'\x7F\x09\x09\x09\x01'\
	b'\x3E\x41\x41\x51\x73'\
	b'\x7F\x08\x08\x08\x7F'\
	b'\x00\x41\x7F\x41\x00'\
	b'\x20\x40\x41\x3F\x01'\
	b'\x7F\x08\x14\x22\x41'\
	b'\x7F\x40\x40\x40\x40'\
	b'\x7F\x02\x1C\x02\x7F'\
	b'\x7F\x04\x08\x10\x7F'\
	b'\x3E\x41\x41\x41\x3E'\
	b'\x7F\x09\x09\x09\x06'\
	b'\x3E\x41\x51\x21\x5E'\
	b'\x7F\x09\x19\x29\x46'\
	b'\x26\x49\x49\x49\x32'\
	b'\x03\x01\x7F\x01\x03'\
	b'\x3F\x40\x40\x40\x3F'\
	b'\x1F\x20\x40\x20\x1F'\
	b'\x3F\x40\x38\x40\x3F'\
	b'\x63\x14\x08\x14\x63'\
	b'\x03\x04\x78\x04\x03'\
	b'\x61\x59\x49\x4D\x43'\
	b'\x00\x7F\x41\x41\x41'\
	b'\x02\x04\x08\x10\x20'\
	b'\x00\x41\x41\x41\x7F'\
	b'\x04\x02\x01\x02\x04'\
	b'\x40\x40\x40\x40\x40'\
	b'\x00\x03\x07\x08\x00'\
	b'\x20\x54\x54\x78\x40'\
	b'\x7F\x28\x44\x44\x38'\
	b'\x38\x44\x44\x44\x28'\
	b'\x38\x44\x44\x28\x7F'\
	b'\x38\x54\x54\x54\x18'\
	b'\x00\x08\x7E\x09\x02'\
	b'\x18\xA4\xA4\x9C\x78'\
	b'\x7F\x08\x04\x04\x78'\
	b'\x00\x44\x7D\x40\x00'\
	b'\x20\x40\x40\x3D\x00'\
	b'\x7F\x10\x28\x44\x00'\
	b'\x00\x41\x7F\x40\x00'\
	b'\x7C\x04\x78\x04\x78'\
	b'\x7C\x08\x04\x04\x78'\
	b'\x38\x44\x44\x44\x38'\
	b'\xFC\x18\x24\x24\x18'\
	b'\x18\x24\x24\x18\xFC'\
	b'\x7C\x08\x04\x04\x08'\
	b'\x48\x54\x54\x54\x24'\
	b'\x04\x04\x3F\x44\x24'\
	b'\x3C\x40\x40\x20\x7C'\
	b'\x1C\x20\x40\x20\x1C'\
	b'\x3C\x40\x30\x40\x3C'\
	b'\x44\x28\x10\x28\x44'\
	b'\x4C\x90\x90\x90\x7C'\
	b'\x44\x64\x54\x4C\x44'\
	b'\x00\x08\x36\x41\x00'\
	b'\x00\x00\x77\x00\x00'\
	b'\x00\x41\x36\x08\x00'\
	b'\x02\x01\x02\x04\x02'\
	b'\x3C\x26\x23\x26\x3C'\
	b'\x1E\xA1\xA1\x61\x12'\
	b'\x3A\x40\x40\x20\x7A'\
	b'\x38\x54\x54\x55\x59'\
	b'\x21\x55\x55\x79\x41'\
	b'\x21\x54\x54\x78\x41'\
	b'\x21\x55\x54\x78\x40'\
	b'\x20\x54\x55\x79\x40'\
	b'\x0C\x1E\x52\x72\x12'\
	b'\x39\x55\x55\x55\x59'\
	b'\x39\x54\x54\x54\x59'\
	b'\x39\x55\x54\x54\x58'\
	b'\x00\x00\x45\x7C\x41'\
	b'\x00\x02\x45\x7D\x42'\
	b'\x00\x01\x45\x7C\x40'\
	b'\xF0\x29\x24\x29\xF0'\
	b'\xF0\x28\x25\x28\xF0'\
	b'\x7C\x54\x55\x45\x00'\
	b'\x20\x54\x54\x7C\x54'\
	b'\x7C\x0A\x09\x7F\x49'\
	b'\x32\x49\x49\x49\x32'\
	b'\x32\x48\x48\x48\x32'\
	b'\x32\x4A\x48\x48\x30'\
	b'\x3A\x41\x41\x21\x7A'\
	b'\x3A\x42\x40\x20\x78'\
	b'\x00\x9D\xA0\xA0\x7D'\
	b'\x39\x44\x44\x44\x39'\
	b'\x3D\x40\x40\x40\x3D'\
	b'\x3C\x24\xFF\x24\x24'\
	b'\x48\x7E\x49\x43\x66'\
	b'\x2B\x2F\xFC\x2F\x2B'\
	b'\xFF\x09\x29\xF6\x20'\
	b'\xC0\x88\x7E\x09\x03'\
	b'\x20\x54\x54\x79\x41'\
	b'\x00\x00\x44\x7D\x41'\
	b'\x30\x48\x48\x4A\x32'\
	b'\x38\x40\x40\x22\x7A'\
	b'\x00\x7A\x0A\x0A\x72'\
	b'\x7D\x0D\x19\x31\x7D'\
	b'\x26\x29\x29\x2F\x28'\
	b'\x26\x29\x29\x29\x26'\
	b'\x30\x48\x4D\x40\x20'\
	b'\x38\x08\x08\x08\x08'\
	b'\x08\x08\x08\x08\x38'\
	b'\x2F\x10\xC8\xAC\xBA'\
	b'\x2F\x10\x28\x34\xFA'\
	b'\x00\x00\x7B\x00\x00'\
	b'\x08\x14\x2A\x14\x22'\
	b'\x22\x14\x2A\x14\x08'\
	b'\xAA\x00\x55\x00\xAA'\
	b'\xAA\x55\xAA\x55\xAA'\
	b'\x00\x00\x00\xFF\x00'\
	b'\x10\x10\x10\xFF\x00'\
	b'\x14\x14\x14\xFF\x00'\
	b'\x10\x10\xFF\x00\xFF'\
	b'\x10\x10\xF0\x10\xF0'\
	b'\x14\x14\x14\xFC\x00'\
	b'\x14\x14\xF7\x00\xFF'\
	b'\x00\x00\xFF\x00\xFF'\
	b'\x14\x14\xF4\x04\xFC'\
	b'\x14\x14\x17\x10\x1F'\
	b'\x10\x10\x1F\x10\x1F'\
	b'\x14\x14\x14\x1F\x00'\
	b'\x10\x10\x10\xF0\x00'\
	b'\x00\x00\x00\x1F\x10'\
	b'\x10\x10\x10\x1F\x10'\
	b'\x10\x10\x10\xF0\x10'\
	b'\x00\x00\x00\xFF\x10'\
	b'\x10\x10\x10\x10\x10'\
	b'\x10\x10\x10\xFF\x10'\
	b'\x00\x00\x00\xFF\x14'\
	b'\x00\x00\xFF\x00\xFF'\
	b'\x00\x00\x1F\x10\x17'\
	b'\x00\x00\xFC\x04\xF4'\
	b'\x14\x14\x17\x10\x17'\
	b'\x14\x14\xF4\x04\xF4'\
	b'\x00\x00\xFF\x00\xF7'\
	b'\x14\x14\x14\x14\x14'\
	b'\x14\x14\xF7\x00\xF7'\
	b'\x14\x14\x14\x17\x14'\
	b'\x10\x10\x1F\x10\x1F'\
	b'\x14\x14\x14\xF4\x14'\
	b'\x10\x10\xF0\x10\xF0'\
	b'\x00\x00\x1F\x10\x1F'\
	b'\x00\x00\x00\x1F\x14'\
	b'\x00\x00\x00\xFC\x14'\
	b'\x00\x00\xF0\x10\xF0'\
	b'\x10\x10\xFF\x10\xFF'\
	b'\x14\x14\x14\xFF\x14'\
	b'\x10\x10\x10\x1F\x00'\
	b'\x00\x00\x00\xF0\x10'\
	b'\xFF\xFF\xFF\xFF\xFF'\
	b'\xF0\xF0\xF0\xF0\xF0'\
	b'\xFF\xFF\xFF\x00\x00'\
	b'\x00\x00\x00\xFF\xFF'\
	b'\x0F\x0F\x0F\x0F\x0F'\
	b'\x38\x44\x44\x38\x44'\
	b'\x7C\x2A\x2A\x3E\x14'\
	b'\x7E\x02\x02\x06\x06'\
	b'\x02\x7E\x02\x7E\x02'\
	b'\x63\x55\x49\x41\x63'\
	b'\x38\x44\x44\x3C\x04'\
	b'\x40\x7E\x20\x1E\x20'\
	b'\x06\x02\x7E\x02\x02'\
	b'\x99\xA5\xE7\xA5\x99'\
	b'\x1C\x2A\x49\x2A\x1C'\
	b'\x4C\x72\x01\x72\x4C'\
	b'\x30\x4A\x4D\x4D\x30'\
	b'\x30\x48\x78\x48\x30'\
	b'\xBC\x62\x5A\x46\x3D'\
	b'\x3E\x49\x49\x49\x00'\
	b'\x7E\x01\x01\x01\x7E'\
	b'\x2A\x2A\x2A\x2A\x2A'\
	b'\x44\x44\x5F\x44\x44'\
	b'\x40\x51\x4A\x44\x40'\
	b'\x40\x44\x4A\x51\x40'\
	b'\x00\x00\xFF\x01\x03'\
	b'\xE0\x80\xFF\x00\x00'\
	b'\x08\x08\x6B\x6B\x08'\
	b'\x36\x12\x36\x24\x36'\
	b'\x06\x0F\x09\x0F\x06'\
	b'\x00\x00\x18\x18\x00'\
	b'\x00\x00\x10\x10\x00'\
	b'\x30\x40\xFF\x01\x01'\
	b'\x00\x1F\x01\x01\x1E'\
	b'\x00\x19\x1D\x17\x12'\
	b'\x00\x3C\x3C\x3C\x3C'\
	b'\x00\x00\x00\x00\x00'

_mvfont = memoryview(_font)

def get_width(s):
    return len(s)*6

def get_ch(ch): 
    ordch = ord(ch)
    offset = ordch*5
    buf = bytearray(6)
    buf[0] = 0
    buf[1:]=_mvfont[offset:offset+5]
    return buf, 6

